noinst_HEADERS = \
	base_node.h \
	category_node.h \
	conf_parser.h \
	conf_writer.h \
	download_node.h \
	download_task_curl.h \
	download_task.h \
	html_import.h \
	msg_server.h \
	msg_client.h \
	proxy_node.h \
	queue_node.h \
	root_node.h \
	url_filter.h \
	urlglib_signal.h \
	urlglib_util.h \
	url_info.h \
	ug_i18n.h

# static library ---

# lib_LIBRARIES = liburlglib.a
noinst_LIBRARIES = liburlglib.a

liburlglib_a_CPPFLAGS = -I$(top_srcdir)

liburlglib_a_CFLAGS = @LFS_CFLAGS@ @GLIB_CFLAGS@ @GTHREAD_CFLAGS@ @CURL_CFLAGS@ @PCRE_CFLAGS@

liburlglib_a_SOURCES = base_node.c urlglib_util.c \
	category_node.c conf_parser.c conf_writer.c \
	download_node.c download_task.c download_task_curl.c \
	proxy_node.c queue_node.c url_info.c html_import.c \
	root_node.c url_filter.c urlglib_signal.c msg_server.c msg_client.c


# shared library (Use libtool) ---

# lib_LTLIBRARIES = liburlglib.la
# liburlglib_la_CPPFLAGS = -I$(top_srcdir) -D_FILE_OFFSET_BITS=64
# liburlglib_la_CFLAGS = `getconf LFS_CFLAGS` `pkg-config --libs glib-2.0 gthread-2.0` `curl-config --libs` `pcre-config --libs`
# liburlglib_la_LDFLAGS = -version-info "1:0:0" `getconf LFS_LDFLAGS`
# liburlglib_la_SOURCES = $(liburlglib_a_SOURCES)


### test program ---

noinst_PROGRAMS = test_urlglib

test_urlglib_CPPFLAGS = -I$(top_srcdir) -D_FILE_OFFSET_BITS=64
test_urlglib_LDADD = liburlglib.a @GLIB_LIBS@ @GTHREAD_LIBS@ @CURL_LIBS@ @PCRE_LIBS@
test_urlglib_CFLAGS =  $(liburlglib_a_CFLAGS) `getconf LFS_CFLAGS`
test_urlglib_LDFLAGS = @LFS_LDFLAGS@

test_urlglib_SOURCES = test_urlglib.c
